<div class="uiTimelineTop">
	<div class="uiTimelineCoverArea">
		<div class="hasHiddenControl">
			<?php if($cover):
			?>
			<div class="uiScaledImageWrap" style="height:300px;">
				<img src="<?php echo $cover -> getPhotoUrl('n'); ?>" width="687" />
			</div>
			<?php endif; ?>
			<div class="absBottom">
				<div class="lfloat pvm phm">
					<a href="<?php echo $resource -> getUrl(); ?>">
						<h1 class="coverTitle"><?php echo $resource -> getTitle(); ?></h1>
					</a>
				</div>
				<div class="rfloat pvm phm uiHiddenControl">
					<?php if(Nuo::isOwner($resource)): ?>
					<a class="uiSingleButton uiButton uiButtonLarge brs" href="<?php echo Nuo::getUrl('user/edit/cover?resource-item=' . $resource -> getItemId()); ?>">
						<span class="uiButtonText"><?php echo Intl::__('Set Cover'); ?></span>
					</a>
					<?php endif; ?>
					<?php if(Nuo::isMember()): ?>
						<?php echo $this->render('user/view/partial/button/addfriend', array('item' => $resource)); ?>
					<?php endif; ?>
				</div>
			</div>
		</div>
	</div>
	
	<div class="uiTimelineHeadline">
		
		<?php echo Nuo::getApi('core/menu')->render('user/profile'); ?>
		
		<div class="clearfix"></div>
		<div class="timelineFixedPhoto hasHiddenControl">
			<a href="<?php $resource -> getUrl(); ?>" class="inlineBlock">
				<img class="timelineProfilePic" src="<?php echo $resource -> getPhotoUrl('h200'); ?>" width="160" height="160" />
			</a>
			<?php if(Nuo::isOwner($resource)): ?>
			<div class="absBottom uiHiddenControl">
				<div class="pvm phm">
					<a class="uiSingleButton uiButton uiButtonLarge brs" href="<?php echo Nuo::getUrl('user/edit/photo', array('resource-item' => $resource -> getId())); ?>">
						<span class="uiButtonText"><?php echo Intl::__('Change Profile Picture'); ?></span>
					</a>
				</div>
			</div>
			<?php endif; ?>
		</div>
	</div>
</div>
